Configure Redistribution to BGP+ for VRF 0 (GRT)
Configure an IPv6 redistribute entry to announce IPv6 routes of a certain source protocol type into the BGP domain, for example, static, OSPF, IS-IS, RIPng, or direct routes. Use a route policy to control the redistribution of routes.

Note
When a route map with attributes set to origin and local-pref is applied to the BGP redistribute command, the attributes are not applied to the redistributed routes.
Before you begin
-
If required, a route policy exists.
Procedure
Example
Specify a route policy to govern redistribution by using the following command:
Switch:1>enable Switch:1#config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch:1(config)#router bgp Switch:1(router-bgp)#redistribute ipv6–direct route-map policy2
Variable Definitions
The following table defines parameters for the redistribute <ipv6-direct|ipv6-isis|ipv6-static|ospfv3|ripng> command.
|
Variable |
Value |
|---|---|
|
enable |
Enables the BGP route redistribution instance. The default value is none. |
|
metric <0–65535> |
Configures the metric to apply to redistributed routes. The default value is 0. |
|
route-map <WORD 0-64> |
Configures the route policy to apply to redistributed routes. The default value is none. |
Job Aid
Use the data in the following table to know how route policies are used for BGP from IPv6 perspective.
|
REDISTRIBUTE |
ACCEPT |
ANNOUNCE |
|||||
|---|---|---|---|---|---|---|---|
|
IPv6 Direct |
IPv6 Static |
OSPFv3 |
IPv6 IS-IS |
RIPng |
BGP |
BGP |
|
|
MATCH |
|||||||
|
as-path |
Yes |
Yes |
|||||
|
community |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
|
community-exact |
Yes |
Yes |
|||||
|
extcommunity |
Yes |
Yes |
|||||
|
interface |
|||||||
|
local-preference |
|||||||
|
metric |
Yes |
Yes |
|||||
|
network |
Yes |
Yes |
|||||
|
next-hop |
Yes |
Yes |
|||||
|
protocol |
|||||||
|
route-source |
Yes |
||||||
|
route-type |
Yes |
Yes |
|||||
|
tag |
|||||||
|
vrf |
|||||||
|
vrfids |
|||||||
|
SET |
|||||||
|
as-path |
Yes |
Yes |
|||||
|
as-path-mode |
Yes |
Yes |
|||||
|
automatic-tag |
|||||||
|
community |
Yes |
Yes |
|||||
|
community-mode |
Yes |
Yes |
|||||
|
injectlist |
Yes |
Yes |
Yes |
Yes |
Yes |
||
|
ip-preference |
|||||||
|
local-preference |
Yes |
Yes |
|||||
|
mask |
|||||||
|
metric |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
|
metric-type |
|||||||
|
metric-type-internal |
|||||||
|
next-hop |
Yes |
Yes |
|||||
|
nssa-pbit |
|||||||
|
origin |
Yes |
||||||
|
origin-egp-as |
|||||||
|
tag |
|||||||
|
weight |
Yes |
||||||